var app = new Vue({
	el: '#app',
	data: {
		host:globalData.constParam.url.baseUrl+'/',
		type:0,
		infos:{
			user:globalData.userInfo
		},
		url:{
			getBannerList:'/api/Banner/GetBannerList'
		},
	},
	mounted: function() {
		globalData.getTempToken(function(){
			//隐藏loading
			$('.loading').hide()
		})
	},
	methods: {
		change_type:function(index){
			if(index!=0){
				if(!globalData.userIsLogin(null,true)){
					return;
				}
			}			
			this.type = index
			globalData.utils.scrool_top()
		},
		out:function(){
			console.log(this.user)
			console.log(globalData.userInfo)
		}
	}
})